package top.lgd.pojo.res.person;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * @author YYJ
 * @version 1.0
 * @since 2023/12/22 9:52
 */
@Getter
@Setter
public class AccountItemRes implements Serializable {

    private static final long serialVersionUID = -6820667398938694331L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 父ID
     */
    private Long parentid;

    /**
     * 祖级ID
     */
    private String ancestors;


    /**
     * 名称
     */
    private String name;

    /**
     * 排序
     */
    private Integer sortNum;

    /**
     * 类型 A：资产 D：负债
     */
    private String type;

    private List<AccountItemRes> children;
}